import request from "@/utils/request";
/*
* 获取供应商信息*/
export  function getList() {
    return request({
        url:'/business/supplier/getList',
        method:'get'
    })
}

/*获取地区*/
export function getJSONDate() {
    return request({
        url:'/json/provinces.json',
        method:'get'
    })
}


/*条件查询*/

export function findSupplier(pageNun,pageSize,queryMap) {
        return request({
            url:"/business/supplier/findSupplier",
            method:"post",
            params:{
                pageNun,
                pageSize
            },
            data:queryMap

        })
}


/*删除*/

export  function deleteSupplier(id) {
    return request({
        url:'/business/supplier/delete',
        method:"delete",
        params:{
            id
        }
    })
}

/*编辑*/
export  function editSupplier(supplierVO) {
    return request({
        url:'/business/supplier/edit',
        method:"post",
        data:supplierVO
    })
}

/*添加*/
export  function addSupplier(supplierVO) {
    return request({
        url:'/business/supplier/add',
        method:"post",
        data:supplierVO
    })
}
